//
//  DIYPayButton.m
//  UcarTest
//
//  Created by 陈曦 on 16/1/20.
//  Copyright © 2016年 chenxi. All rights reserved.
//

#import "DIYPayButton.h"
#import "Define.h"

@implementation DIYPayButton

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.backgroundColor = [UIColor whiteColor];
        
        self.moneyImageView = [[UIImageView alloc] initWithFrame:CGRectMake(kScreenWidthEight * 1.5, 12, 20, 19)];
        self.moneyImageView.image = [UIImage imageNamed:@"icon-chongzhi"];
        [self addSubview:self.moneyImageView];
        
        self.nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(kScreenWidthEight * 2, 12, kScreenWidthEight, 19)];
        self.nameLabel.textAlignment = NSTextAlignmentCenter;
        self.nameLabel.font = [UIFont systemFontOfSize:15];
        self.nameLabel.textColor = [UIColor colorWithRed:51 / 255.0 green:51 / 255.0 blue:51 / 255.0 alpha:1];
        [self addSubview:self.nameLabel];
        
    }
    return self;
}

@end
